const { createProxyMiddleware } = require("http-proxy-middleware");
module.exports = (app) => {
    app.use(
        createProxyMiddleware('/api', {
          target: 'http://localhost:1000',
          secure: false,    
          changeOrigin: true,
          pathRewrite: {
              "^/api": "http://localhost:1000"
          },
        }),
      );
}